From 2141f13d32f47cb5094d98adcf9f93f110436b1d Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Fri, 26 Aug 2016 08:01:07 -0400 Subject: [PATCH] Remove unused macro (configure_shell) Also i've removed some unused lints on sha256.rs --- src/bin/cargo.rs | 10 ---------- src/cargo/util/sha256.rs | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index 85246efa0..2e4ceb0eb 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -71,16 +71,6 @@ fn main() { execute_main_without_stdin(execute, true, USAGE) } -macro_rules! configure_shell { - ($config:expr, $options:expr) => ( - try!($config.configure($options.flag_verbose, - $options.flag_quiet, - &$options.flag_color, - $options.flag_frozen, - $options.flag_locked)); - ) -} - macro_rules! each_subcommand{ ($mac:ident) => { $mac!(bench); diff --git a/src/cargo/util/sha256.rs b/src/cargo/util/sha256.rs index 97bee1c35..80a48d84b 100644 --- a/src/cargo/util/sha256.rs +++ b/src/cargo/util/sha256.rs @@ -3,8 +3,6 @@ pub use self::imp::Sha256; // Someone upstream will link to OpenSSL, so we don't need to explicitly // link to it ourselves. Hence we pick up Sha256 digests from OpenSSL #[cfg(not(windows))] -// allow improper ctypes because size_t falls under that in old compilers -#[allow(bad_style, improper_ctypes)] mod imp { extern crate openssl; -- 2.30.2